package com.gcu.drivingschool.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 *预约学车实体
 * @author zzr
 * @since 2024-05-12
 */
@Data
@TableName("book_driving")
@Schema(description = "预约学车实体")
public class BookDriving{

    @Schema(description = "主键")
    @TableId
    private Integer id;

    @Schema(description = "学员id")
    @NotNull
    private Integer studentId;

    @Schema(description = "预约日期（格式：yyyy-MM-dd）")
    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private LocalDate bookDate;

    /**
     * 预约记录状态（未过期，已过期）
     */
    @Schema(description = "预约记录状态（未过期，已过期）")
    private String status;
}
